package com.muze.core.app.upload.httppost;

import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.muze.core.app.login.service.UserLoginService;

 
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:spring/muzeSpring.xml" })
public class HTTPPostservice {

	@Autowired
	UserLoginService uploadDataService;
	
	@Test
	@Ignore
	public void testpost(){
		String strjson ="{'machineId':'HST821255555',"
				+ "'macAddr':'00-06-55-55-0A-2B',"
				+ "'member': {'name':'你好 ','phone':'15812397368','idcard':'440883199354284257','age':'22','sex':'男','address':'北京海淀区','measureTime':'2015-04-0914:32:02','birthday':'1993-09-28','barcode':'','userIcon':''},"
				+ "'height':{'height':'180','weight':'70','BMI':'22','idealWeight':'74'},"
				+ "'fat':{'fatRate':'16','fat':'26.2','exceptFat':'49.8','waterRate':'36.4','water':'26.8','minerals':'1.2','protein':'7.6','fic':'17.8','foc':'9','muscle':'34.4', 'fatAdjust':'-0.3','weightAdjust':'0.1','muscleAdjust':'0.4','basicMetabolism':'1140','viscera':'7','result':''},"
				+ "'bloodPressure':{'highPressure':'96','lowPressure':'57','pulse':'65','result':''},"
				+ "'bo':{'bo':'99','result':'','startTime':'','endTime':'','listBo':'','listBoPulse':''},"
				+ "'ecg':{'ecg':'88','ecgData':'','result':'','nGain':''},"
				+ "'temperature':{'temperature':'37','result':''},"
				+ "'whr':{'waistline':'22','hipline':'88','whr':'25','result':''},"
				+ "'bloodSugar':{'bloodSugar':'3.8','us':'0.54','chol':'2.77','bloodsugarType':'','result':''}}";
		//uploadDataService.getData(strjson);
	}
}
